package com.cpi.cornpp.creditline.view;

import java.io.Serializable;

/**
 * Credit Line View
 * 
 * @author Edgar Joao
 * 
 */
public class CreditLineView implements Serializable{

	/** Serial Version UID*/
	private static final long serialVersionUID = 5386776908756324521L;

	int creditLineId;
	String description;
	double limit;
	double outOfCredit;
	double tax1;
	double tax2;
	
	public int getCreditLineId() {
		return creditLineId;
	}
	public void setCreditLineId(int creditLineId) {
		this.creditLineId = creditLineId;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public double getLimit() {
		return limit;
	}
	public void setLimit(double limit) {
		this.limit = limit;
	}
	public double getOutOfCredit() {
		return outOfCredit;
	}
	public void setOutOfCredit(double outOfCredit) {
		this.outOfCredit = outOfCredit;
	}
	public double getTax1() {
		return tax1;
	}
	public void setTax1(double tax1) {
		this.tax1 = tax1;
	}
	public double getTax2() {
		return tax2;
	}
	public void setTax2(double tax2) {
		this.tax2 = tax2;
	}
	public double getExceededLimit(){
		return limit + (limit * (outOfCredit/100));
	}	
}
